package com.heakey.app.executor.user.update;

import cn.hutool.core.bean.BeanUtil;
import com.heakey.app.model.user.req.UserRecordUpdateReq;
import com.heakey.domain.dao.user.entity.UserRecord;
import com.heakey.domain.service.user.IUserRecordService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Description TODO
 * @Author Bing
 * @Date 2025/6/5 9:49
 */
@RequiredArgsConstructor
@Service
public class UserRecordUpdateService {

    private final IUserRecordService userRecordService;

    public boolean updateById(UserRecordUpdateReq updateReq) {
        UserRecord userRecord = BeanUtil.copyProperties(updateReq, UserRecord.class);
        return userRecordService.updateById(userRecord);
    }
}